package com.xiaoyu.daggertest;

import android.app.Application;
import com.xiaoyu.daggertest.component.DaggerWeaponComponent;
import com.xiaoyu.daggertest.component.WeaponComponent;
import com.xiaoyu.daggertest.module.ColdSteelModule;
import com.xiaoyu.daggertest.module.GunModule;

/**
 * Created by yaodonglv on 2018/3/14.
 */

public class App extends Application {

    private static WeaponComponent mWeaponComponent;

    public static WeaponComponent getmWeaponComponent() {
        return mWeaponComponent;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mWeaponComponent = DaggerWeaponComponent.builder().gunModule(new GunModule()).coldSteelModule(new ColdSteelModule()).build();
    }
}
